package test.test1202;

public class test09 {
    public static void main(String[] args) {
        int[] arr={1, 2, 3, 4, 5, 6, 7};
        show(arr);
    }
    public static void show(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            if(i%2==0){
                arr[i]++;
            }
            System.out.print(arr[i]+" ");
        }
    }
}
